package com.example.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.entity.User;

import java.util.Collection;
import java.util.List;

public interface UserService {
    public User selectUserByUser(User user);

    public List<User> selectUserList();

    public int insertUserByUser(User user);

    public Integer getUserListCount(User user);

    public int updateUserByUser(User user);

    public int deleteUserById(User user);

    public List<User> selectUserListByPage(User user);

    //mybatisPlus分页测试
    public Page<User> selectUserListByMybatisPlusPage(User user,Page<User> page);

    public User selectUserByParentId(int id);

    public int removeByList(int[] ids);

    public int removeByListMybatisPlus(Integer[] ids);

    public int updateUserAvatarByUserId(User user);

    public User getUserByUsername(String username);

    public Integer getAuthorityIdByUserId(Integer userId);

    public String getAuthorityNameByUserId(Integer userId);

    public int updateUserAuthorityByUser(User user);

}
